<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

     <table border="1px">
		  <colgroup>
		    <col width="150">
		    <col width="200">
		   
		  </colgroup>
		  <thead>
		    <tr>
		      <th>药品名</th>
		      <th>药品封面</th>
		      <th>厂家名</th>
		      <th>厂家地址</th>
		      <th>厂家电话</th>
		      <th>生产时间<th>
		      <th>编辑  </th>
		    </tr> 
		  </thead>
		  <tbody>
		  <c:forEach items="${pharmaceuticalList}"  var="pharmaceutical">
		    <tr >
		      <td>${pharmaceutical.name}</td>
		      <td><img width="50px" height="50px" src="${APP_PATH}/img/${pharmaceutical.cover}"></img></td>
		      <td>${pharmaceutical.factoryName }</td>
		      <td>${pharmaceutical.factoryAddress }</td>
		      <td>${pharmaceutical.factoryPhone }</td>
		      <td>${pharmaceutical.gmtCreate }</td>
		      <td></td>
		      <td><a href="${APP_PATH}/pharmaceutical/showEdit/${pharmaceutical.id}/${pharmaceutical.factoryId}">修改</a> <a href="${APP_PATH}/pharmaceutical/delete/${pharmaceutical.id}/${pharmaceutical.factoryId}">删除</a></td>
		    </tr>
		    
		    
		  </c:forEach>
		
		  </tbody>
		  	
		
	</table>
	<a href="${APP_PATH}/pharmaceutical/showAddPharmaceutical/${factoryId}">添加药品信息</a>
	<a href="${APP_PATH}/getFactory">药厂信息管理</a>



</body>
</html>